package com.kgc.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.kgc.api.goods.NewProductApi;
import com.kgc.bean.GoodsItem;
import com.kgc.mapper.NewProductPushMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class NewProductProvider implements NewProductApi {
    @Autowired
    private NewProductPushMapper newProductPushMapper;
    @Override
    public List<GoodsItem> queryNewProduct() {
        return newProductPushMapper.queryNewProduct();
    }
}
